package com.dnjn.happiness.biz.domain.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.dnjn.happiness.common.core.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

/**
 * 体检对象 biz_checkup
 *
 * @author happiness
 * @date 2024-03-27
 */
@Accessors(chain = true)
@ToString
@Getter
@Setter
public class CheckupVO implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private Long checkupId;

    /**
     * 工号
     */
    @Schema(description = "工号")
    @Excel(name = "工号")
    private String empno;

    /**
     * 体检时间
     */
    @Schema(description = "体检时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "登记日期", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date checkupTime;


    /**
     * 姓名
     */
    @Schema(description = "姓名")
    @Excel(name = "姓名")
    private String nickName;


    /**
     * 体检编号
     */
    @Schema(description = "体检编号")
    @Excel(name = "体检编号")
    private String checkupRef;

    /**
     * 性别
     */
    @Schema(description = "性别")
    @Excel(name = "性别", readConverterExp = "0=男,1=女,2=未知")
    private String sex;

    /**
     * 身份证号
     */
    @Schema(description = "身份证号")
    @Excel(name = "身份证号")
    private String idCard;

    /**
     * 年龄
     */
    @Schema(description = "年龄")
    @Excel(name = "年龄")
    private String age;


    /**
     * 人员类别：上岗前
     */
    @Schema(description = "人员类别：上岗前")
    @Excel(name = "人员类别")
    private String checkupCategory;

    @Schema(description = "接害工龄")
    @Excel(name = "接害工龄")
    private String seniority;

    /**
     * 毒害种类和名称：噪声
     */
    @Schema(description = "毒害种类和名称：噪声")
    @Excel(name = "毒害种类和名称")
    private String poisonType;

    /**
     * 危害等级
     */
    @Schema(description = "危害等级")
    @Excel(name = "危害等级")
    private String harmGrade;

    /*@Schema(description = "岗位或工种")
    @Excel(name = "岗位或工种")
    private String typeOfWork;*/


    /**
     * 用户id
     */
    @Schema(description = "用户id")
    private Long userId;


    /**
     * 总检建议
     */
    @Schema(description = "总检建议")
    @Excel(name = "总检建议")
    private String advice;

    /**
     * 总检综述
     */
    @Schema(description = "总检综述")
    @Excel(name = "总检综述")
    private String summarize;

    /**
     * 是否删除|0-否 1-是
     */
    private String deleted;

    /**
     * 备注
     */
    @Excel(name = "备注")
    private String remark;

    /**
     * 请求参数
     */
    @TableField(exist = false)
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private Map<String, Object> params;


    public Map<String, Object> getParams() {
        if (params == null) {
            params = new HashMap<>();
        }
        return params;
    }

    public void setParams(Map<String, Object> params) {
        this.params = params;
    }


}
